function sortData(data) {
    var newArr = [];
    for (var p = 0; p < data.length; p++) {
        newTempDate = (data[p].BaseModifyTime).replace(new RegExp("-", "gm"), "/");
        tempHaoMiao = (new Date(newTempDate)).getTime();
        newArr.push(data[p])
        newArr[p].sortfields = tempHaoMiao;
    }

    return newArr.sort(sortDate);
}

function sortDate(a, b) {
    return a.sortfields - b.sortfields
}

function getDate(strDate) {
    var date = eval('new Date(' + strDate.replace(/\d+(?=-[^-]+$)/,
        function (a) {
            return parseInt(a, 10) - 1;
        }).match(/\d+/g) + ')');
    return date;
}